Package com.seclore.fs.ws.client.pscp
Interface CryptoHandler
public interface CryptoHandler
This interface represents the CryptoHandler to encrypt and decrypt the protocol for secure communication.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]decryptWithPrivateKey(byte[] pCipherData) This method decrypts data using private keybyte[]encryptWithPrivateKey(byte[] pPlainData) This method encrypts data using private keygetKeyID()Gets the Key ID for the implemented Handler
-
Method Details
-
encryptWithPrivateKey
This method encrypts data using private key- Parameters:
plainData- - The data byte array to be encrypted- Returns:
- encrypted data
- Throws:
WSClientException
-
decryptWithPrivateKey
This method decrypts data using private key- Parameters:
pCipherData- - The data byte array to be decrypted- Returns:
- decrypted data
- Throws:
WSClientException
-
getKeyID
String getKeyID()Gets the Key ID for the implemented Handler- Returns:
- key id
-